<template>
  <div id="app">
    <!-- 路由嵌套 用include会麻烦 ===>直接在路由上定义meta属性-->
    <keep-alive>
      <router-view v-if="$route.meta.isKeepAlive" />
    </keep-alive>
    <router-view v-if="!$route.meta.isKeepAlive" />
  </div>
</template>

<style lang="less">
</style>
